package com.gmq.chapter02.twoObjectTwoLock;

/**
 * Created by gmq on 2017/08/14.
 * 多个对象多个锁
 *
 * @version 1.0
 * @since 2017/08/14 20:30
 */
public class Run {
    public static void main(String[] args) {
        HasSelfPrivateNum num1 = new HasSelfPrivateNum();
        HasSelfPrivateNum num2 = new HasSelfPrivateNum();
        ThreadA a = new ThreadA(num1);
        a.start();
        ThreadB b = new ThreadB(num2);
        b.start();
    }
}
